package com.ytjj.qmyx.admin.dao;

import com.ytjj.qmyx.admin.model.request.ImgRecordRequest;
import com.ytjj.qmyx.admin.model.request.ImgTaskUploadRequest;
import com.ytjj.qmyx.admin.model.response.ImgLibraryResponse;
import com.ytjj.qmyx.mall.model.ImgLibrary;
import com.ytjj.qmyx.mall.model.ProductSelectImg;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @Description TODO
 * @ClassName ImgTaskDao
 *
 *
 * @Version 1.0
 **/
@Repository
public interface ImgTaskDao {

    /**
     * @Description 获取图库列表
     *
     *
     *
     * @Version 1.0
     **/
    List<ImgLibrary> getImgLibraryList(ImgTaskUploadRequest imgTaskUploadRequest);

    /**
     * 获取挑选图库列表
     */
    List<ProductSelectImg> getSelectImgLisgt(ImgTaskUploadRequest imgTaskUploadRequest);

    /**
     * @Description 删除图片 物理删除
     *
     *
     *
     * @Version 1.0
     **/
    int updateImgStatus(@Param("id") Integer id,
                        @Param("userId") Integer userId,
                        @Param("userName") String userName);

    /**
     * @Description 修改图片信息
     *
     *
     *
     * @Version 1.0
     **/
    int modifiedImgInfo(ImgTaskUploadRequest imgTaskUploadReques);

    /**
     * @Description 根据图片类型获取图片列表
     *
     *
     *
     * @Version 1.0
     **/
    List<ImgLibraryResponse> selectImgList(ImgRecordRequest imgRecordRequest);


}
